package com.iterator.controller.web.systemManager;





import com.iterator.bean.web.pojo.BaseRespVo;

import com.iterator.bean.web.wy.log.LogVO;
import com.iterator.service.web.systemManager.LogService;
import com.iterator.util.StringTrim;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Silence_W
 * @date: 2021-01-10 16:38
 *
 * 系统管理
 *   操作日志
 **/
@RestController
@RequestMapping("admin/log")
public class LogController {

    @Autowired
    LogService logService;

    //管理员操作数据显示
    @RequestMapping("list")
    @RequiresPermissions("admin:log:list")
    public BaseRespVo list(Integer page, Integer limit, String name, String sort, String order){
        String trim = StringTrim.trim(name);
        LogVO logVO=logService.queryLog(page,limit,trim,sort,order);
        return BaseRespVo.ok(logVO);
    }
}
